package com.yenlien.traceyun.business.entity;

import com.yenlien.traceyun.webase.entity.BaseIdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-12-08
 * @description:
 **/
@Entity(name = "pay_record")
public class PayRecord extends BaseIdEntity {

    /**
     * 订单id
     */
    @Column(name = "order_id", length = 32)
    private String orderId;

    /**
     * 付款时间
     */
    @Temporal(TemporalType.TIME)
    @Column(name = "pay_time")
    private Date payTime;

    /**
     * 付款方式
     */
    @Column(name = "pay_type", length = 10)
    private String payType;

    /**
     * 付款金额
     */
    @Column(name = "cash", length = 11)
    private BigDecimal cash;

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public BigDecimal getCash() {
        return cash;
    }

    public void setCash(BigDecimal cash) {
        this.cash = cash;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }
}
